package com.px.gis.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.px.gis.entity.Area;

import java.util.List;

public interface IAreaService extends IService<Area> {

    boolean saveEntity(Area entity);

    List<Area> intersects(String polygon);

    void removeEntity(Long id);

    List<Tree<Long>> getTrees(List<Area> allArea);

}
